import {createApp} from 'vue'
import App from './App.vue'
import router from "./router";
import 'element-plus/dist/index.css'; // 🚨 必须全局引入样式

import {library} from "@fortawesome/fontawesome-svg-core";
import {faWeixin, faQq, faWeibo, faAlipay} from "@fortawesome/free-brands-svg-icons";
import {faUser, faLock, faEnvelope,faKey} from "@fortawesome/free-solid-svg-icons";
import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import './permission'
library.add(faWeixin, faQq, faWeibo, faAlipay, faUser, faLock, faEnvelope,faKey);

const app = createApp(App)
app.component("font-awesome-icon", FontAwesomeIcon)
app.use(router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
document.title="Sage"
app.mount('#app')
